package com.zja.service;

import com.zja.model.Article;

import java.util.List;

/**
 * @author JA
 * @date: 2025/5/4
 * description:
 */
public interface ArticleService {
    List<Article> getAllArticles();

    Article getArticleById(Long id);

    boolean createArticle(Article article);

    boolean updateArticle(Article article);

    boolean deleteArticle(Long id);

    List<Article> getArticlesByKnowledgeBaseId(Long kbId);

    List<Article> searchArticles(Long kbId, String keyword, int page, int pageSize);

    int countArticles(Long kbId, String keyword);
}
